/* 
 * File:   MutexAble.cpp
 * Author: bastien
 * 
 * Created on 12 octobre 2010, 11:57
 */

#include "MutexAble.h"

MutexAble::MutexAble() {
    pthread_mutexattr_init(&myattr);
    pthread_mutex_init(&mymutex,&myattr);
}

MutexAble::MutexAble(const MutexAble& orig) { }

MutexAble::~MutexAble() {
    pthread_mutex_destroy(&mymutex);
    pthread_mutexattr_destroy(&myattr);
}

